<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>搜索结果</title>
    <link rel="stylesheet" href="./assets/mui/css/mui.min.css">
    <link rel="stylesheet" href="./assets/fontAwesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="./css/index.css">
    <script src="./assets/zepto/zepto.min.js"></script>
    <script src="./assets/mui/js/mui.min.js"></script>
    <script src="./js/search-result.js"></script>
    <script src="./assets/artTemplate/template-native.js"></script>
    <script src="./js/public.js"></script>
</head>

<body>
    <!-- 顶部部分 -->
    <header class="mui-bar mui-bar-nav myheader">
        <a href="#" class="mui-icon mui-icon-arrowleft mui-pull-left"></a>
        <h1 class="mui-title">搜索结果</h1>
    </header>
    <!-- 内容部分 -->
    <div class="result-content">
        <div>
            <div class="title">
                <span id="price-sort">
                       价格
                       <i class="mui-icon mui-icon-arrowdown"></i>
                     </span>
                <span id="sales-sort">
                       销量
                       <i class="mui-icon mui-icon-arrowdown"></i>
                     </span>
            </div>
            <div class="sport">
                <ul id="search-res">
                    <!-- <li>
                                <a href="#">
                                    <img src="./images/product.jpg" alt="">
                                    <div class="name">阿迪达斯 男士运动休闲篮球鞋2018年新款</div>
                                    <span>￥560</span>
                                    <span>￥888</span>
                                    <p>立即购买</p>
                                </a>
                            </li> -->
                </ul>
            </div>
        </div>
    </div>
    <!-- 底部导航 -->
    <nav class="mui-bar mui-bar-tab footer">
        <a class="mui-tab-item" href="index.html">
            <span class="mui-icon mui-icon-home"></span>
            <span class="mui-tab-label">首页</span>
        </a>
        <a class="mui-tab-item" href="category.html">
            <span class="mui-icon mui-icon-bars"></span>
            <span class="mui-tab-label">分类</span>
        </a>
        <a class="mui-tab-item" href="cart.html">
            <i class="mui-icon fa fa-shopping-cart" aria-hidden="true"></i>
            <span class="mui-tab-label">购物车</span>
        </a>
        <a class="mui-tab-item" href="user.html">
            <span class="mui-icon mui-icon-person"></span>
            <span class="mui-tab-label">会员中心</span>
        </a>
    </nav>
    <script type="text/template" id="tem-search-res">
        <% for(var i=0;i<data.length;i++){ %>
            <li>
                <a href="detail.html?id=<%= data[i].id %>">
                    <img src="<%= data[i].pic[0].picAddr %>" alt="">
                    <div class="name"><%= data[i].proName %></div>
                    <span>￥<%= data[i].price %></span>
                    <span>￥<%= data[i].oldPrice %></span>
                    <p>立即购买</p>
                </a>
            </li>
            <% } %>
    </script>



</body>

</html>